package zuoye50;

public class Homework03 {
public static void main(String[] args) {
	for(int i=100;i<1000;i++){		
		if(IsShuiXianHuaShu(i)){
			System.out.println(i);
		}
	}
}

private static boolean IsShuiXianHuaShu(int i) {
	if((i%1000/100)*(i%1000/100)*(i%1000/100)+(i%100/10)*(i%100/10)*(i%100/10)+(i%10)*(i%10)*(i%10)==i){
		return true;
	}else
	return false;
}
}
